import { createApp } from 'vue'
import App from '@/App.vue'
import router from "@/router/index.js";

import naive from "naive-ui";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import getAssetsFile from "./utils/getAssetsFile.js";

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}

app.provide("getAssetsFile", getAssetsFile);

// css样式表
import "@/style/cssIndex.js";
import '@/style/quill/vue-quill.core.css';
import '@/style/quill/vue-quill.bubble.css';
import '@/style/quill/vue-quill.snow.css';

app.use(router).use(naive)

app.mount('#app')
